export default {
  login(state, data) {
    state.userInfo = data;
    state.is_login = true;
  },
  update_userinfo(state, data) {
    state.userInfo = data;
  },
  update_avatar(state, data) {
    state.userInfo.avatar = data.avatar;
  },
  update_checked(state, data) {
    state.userInfo.checked.push(data);
  }
};
